package com.yhq.spring.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @author hqyin
 * @date 2023/3/14 10:14 上午
 */
@Slf4j
@Component
public class EventListenerByImplements implements ApplicationListener<EventByExtends> {
    @Override
    @Async
    public void onApplicationEvent(EventByExtends event) {
        log.info("===========>receive event:{}",event.getId());
    }
}
